﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="comment_list.aspx.cs" Inherits="ByteSite.Web.admin.article.comment_list" ValidateRequest="false" %>
<%@ Import namespace="ByteSite.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>评论管理</title>
<link rel="stylesheet" type="text/css" href="../../scripts/artdialog/ui-dialog.css" />


<link rel="stylesheet" type="text/css" href="../skin/default/style.css" />
<link href="../skin/uikit/css/uikit.min.css" rel="stylesheet" />
<script type="text/javascript" src="../skin/uikit/js/uikit.min.js"></script>
<script type="text/javascript" src="../skin/uikit/js/uikit-icons.min.js"></script>
<script type="text/javascript" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="../../scripts/artdialog/dialog-plus-min.js"></script>
<script type="text/javascript" src="../../scripts/xm-select/xm-select.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
</head>

<body class="mainbody">
<form id="form1" runat="server">


<!--工具栏-->

<div class="uk-grid-match uk-child-width-auto uk-flex-between uk-grid">
    <div class="uk-first-column">
        <div class="uk-panel">
            <div class="uk-button-group uk-first-column">
                <a class="uk-button uk-button-default" uk-icon="check" href="javascript:;" onclick="checkAll(this);" uk-tooltip="全选"></a>
                <asp:LinkButton ID="btnDelete" runat="server" uk-icon="trash" CssClass="uk-button uk-button-default" OnClientClick="return ExePostBack('btnDelete','本操作会删除本条评论，是否继续?');" onclick="btnDelete_Click" uk-tooltip="删除"></asp:LinkButton>
                <asp:LinkButton ID="btnAudit" runat="server" uk-icon="file-edit" CssClass="uk-button uk-button-default" OnClientClick="return ExePostBack('btnAudit','审核后前台将显示该信息，确定继续吗?');" onclick="btnAudit_Click" uk-tooltip="审核通过"></asp:LinkButton>
                <div class="">                    
                    <button type="button" class="uk-button uk-button-default" uk-icon="list" uk-tooltip="选择更多筛选条件"></button>
                    <div class="uk-width-xxlarge" uk-dropdown="mode:click">
                        <div class="uk-dropdown-grid" uk-grid>
                            <div class="uk-first-column uk-width-1-2">
                                <asp:DropDownList ID="ddlProperty" runat="server" CssClass="uk-select" AutoPostBack="True" onselectedindexchanged="ddlProperty_SelectedIndexChanged">
                                  <asp:ListItem Value="" Selected="True">所有属性</asp:ListItem>
                                  <asp:ListItem Value="isLock">未审核</asp:ListItem>
                                  <asp:ListItem Value="unLoock">已审核</asp:ListItem>
                                </asp:DropDownList>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div>
        <div class="uk-panel">
            <div class="uk-margin" uk-margin>
                <asp:TextBox ID="txtKeywords" runat="server" CssClass="uk-input uk-form-width-medium" />
                <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="uk-button uk-button-default" onclick="btnSearch_Click" uk-icon="search"></asp:LinkButton>
            </div>
        </div>
    </div>
</div>
<div class="line20"></div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
  <asp:Repeater ID="rptList" runat="server">
  <HeaderTemplate>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="uk-table uk-table-striped uk-table-justify uk-table-middle uk-table-hover uk-table-divider">
  </HeaderTemplate>
  <ItemTemplate>
    <tr>
      <td class="comment">
        <div class="title">
          <span class="note"><i><%#Eval("user_name")%></i><i><%#Eval("add_time")%></i><i class="reply"><a href="comment_edit.aspx?id=<%#Eval("id")%>">回复</a></i></span>
          <b><asp:CheckBox ID="chkId" CssClass="checkall uk-checkbox" runat="server" /><asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" /></b>
          <%#new ByteSite.BLL.article().GetTitle(this.channel_id, Convert.ToInt32(Eval("article_id")))%>
        </div>
        <div class="ask">
          <%#Convert.ToInt32(Eval("is_lock")) == 1 ? "<b class=\"audit\" title=\"待审核\"></b>" : ""%><%#Eval("content")%>
          <%#Convert.ToInt32(Eval("is_reply")) == 1 ? "<div class=\"answer\">" +
              "<b>管理员回复：</b>" + Eval("reply_content") + "<span class=\"time\">" + Eval("reply_time") + "</span></div>" : ""%>
        </div>
      </td>
    </tr>
  </ItemTemplate>
  <FooterTemplate>
    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\">暂无评论信息</td></tr>" : ""%>
  </table>
  </FooterTemplate>
  </asp:Repeater>
</div>
<!--/列表-->

<!--内容底部-->
<div class="line20"></div>
<div class="uk-grid-small uk-grid-match uk-child-width-expand uk-grid" uk-grid>
    <div class="uk-width-small uk-first-column">
        <div class="uk-panel">
            <div class="l-btns">
                <asp:TextBox ID="txtPageNum" runat="server" CssClass="uk-input uk-form-width-xsmall" onkeydown="return checkNumber(event);"
                 OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span> 条/页</span>
              </div>
        </div>
    </div>
    <div>
        <div class="uk-panel">
            <ul id="PageContent" runat="server" class="uk-pagination"></ul>
        </div>
    </div>
</div>
<!--/内容底部-->

</form>
</body>
</html>
